Ux 1341 remove rest for topic listing#2513
Draft
jvorcak wants to merge 4 commits into
Draft
Conversation
Extend ListTopicsResponse.Topic with cleanup_policy and an aggregated LogDirSummary (total size, per-broker replica errors, hint) so the topic list UI can be served entirely from the gRPC endpoint, removing the need for the REST /topics call. Regenerate protogen and OpenAPI artifacts.
Delete useLegacyListTopicsQuery and its REST-shaped mapper; migrate all consumers to the native gRPC useListTopicsQuery (ListTopicsResponse_Topic). Callers needing the full list pass pageSize -1, matching prior behavior. - useListTopicsQuery now forwards staleTime/refetchOnWindowFocus (narrowed to primitives to keep useQuery generic inference intact). - topic-list pages drop the dead allowedActions permission popover (never populated by the old mapper) and switch the name column id to 'name'. - renderLogDirSummary accepts number | bigint and an optional summary so it serves both the REST and gRPC topic shapes without a mapper. - Update tests to the native gRPC shape.
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).
|
…ic-step test - buf.yml: buf-action defaults to the latest buf, whose formatter collapses single-field messages and flags ~40 already-formatted protos. Pin to 1.65.0 (the repo's canonical version from taskfiles/proto.yaml) so CI matches `task proto:generate`. - add-topic-step.test.tsx: topics now load via the gRPC ListTopics query over the test's router transport, not config.fetch. Register a listTopics handler (with a topicNames override) and drop the dead mockFetch-based seeding and the `expect(mockFetch).toHaveBeenCalled()` assertions that could never pass.
…apper Add TestTopicSummariesToProto guarding the gRPC ListTopics response shape: cleanup policy and the aggregated log dir summary (size, hint, per-broker replica errors) must survive mapping from console.TopicSummary. There was no backend coverage for ListTopics, so a regression showed up only as empty columns in the UI.
malinskibeniamin
approved these changes
Jun 19, 2026
c-julin
requested changes
Jun 19, 2026
c-julin
left a comment
Contributor
There was a problem hiding this comment.
Not to be a pain but this is a change we dont want to make on the dataplane api :( adding log dirs. Its been a long time ticket which i haven't done yet to split this out, if we can wait until next week i'll try prioritise it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.